
/** When your routing table is too long, you can split it into small modules**/

import Layout from "@/layout/index.vue";

const orderRouter = {
    path: '/order',
    component: Layout,
    redirect: 'noRedirect',
    name: 'oreder',
    meta: {
        title: '预约订单',
        icon: 's-data'
    },
    children: [
        {
            path: 'allOrder',
            component: () => import('@/views/orders/allOrder.vue'),
            name: 'allOrder',
            meta: { title: '全部订单', noCache: true }
        },
        {
            path: 'inline-table',
            component: () => import('@/views/orders/completeOrder.vue'),
            name: 'inline-table',
            meta: { title: '已完成订单', noCache: true  }
        },
        {
            path: 'edit-table',
            component: () => import('@/views/orders/awaitOrder.vue'),
            name: 'edit-table',
            meta: { title: '待确认订单', noCache: true  }
        },
				{
				    path: 'edit-table',
				    component: () => import('@/views/orders/cancelOrder.vue'),
				    name: 'edit-table',
				    meta: { title: '已取消订单', noCache: true  }
				},
    ]
}

export default orderRouter
